<div id="result">
<?php echo $this->Session->flash(); ?>
<div class="shippings index">
	<div class="div_header1"><?php echo'Shipping Costs for '.$categories['Category']['category_name'];?></div>
	<br style="clear:both;">
	<span id="msg" style="color:blue;"></span>	
	<form method="post" name="shippingCost" id="shippingCost" action="<?php echo Configure::read('base_url')."shippings/add";?>">
	<table id="category_table" cellspacing="0">	
	<tr>
		<td>Fixed Shipping Cost: $</td>
		<td>
			<?php echo $this->Form->input('Category.id',array('div'=>false,'label'=>false,'type'=>'hidden','value'=>$categories['Category']['id']));?>		
			<?php echo $this->Form->input('Category.shipping_cost',array('div'=>false,'label'=>false,'style'=>'width:54px','class'=>'required decimal','value'=>$categories['Category']['shipping_cost'])); ?>
		</td>
	</tr>
	<tr>
		<td>Shipping Weight: lb</td>
		<td>
			<?php echo $this->Form->input('Category.shipping_weight',array('div'=>false,'label'=>false,'style'=>'width:54px','class'=>'required decimal','value'=>$categories['Category']['shipping_weight'])); ?>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<input type="submit" name="update" id="update" value="Update" />
		</td>
	</tr>
	</table>
</form>	
</div>
</div>
<?php  echo $html->script(array("jquery.min.js","jquery.form.js","jquery.validate.js","jquery.tablednd.js")); ?>	 
<script type="text/javascript">  
jQuery(document).ready(function(){ 
var v = jQuery("#shippingCost").validate({
			submitHandler: function(form) {
				jQuery(form).ajaxSubmit({
					target: "#result"
				});
			}
		});
 }); 
 </script>